package mx.com.daycare.business;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Stateless;
import mx.com.daycare.entity.Course;
import mx.com.daycare.entity.Teacher;

/**
 * Session Bean implementation class TeacherBL
 */
@Stateless
public class TeacherBL implements TeacherBLLocal {

	/**
	 * Default constructor.
	 */
	public TeacherBL() {

	}

	public List<Teacher> getTeachers() {
		List<Teacher> teachers = new ArrayList<Teacher>();
		List<Course> coursesA = new ArrayList<Course>();
		Course courseaa = new Course();
		courseaa.setId(1);
		courseaa.setName("Ingles");
		Course courseab = new Course();
		courseab.setId(2);
		courseab.setName("Pintura");
		Course courseac = new Course();
		courseac.setId(3);
		courseac.setName("Musica");
		Course coursead = new Course();
		coursead.setId(4);
		coursead.setName("Cultura Fisica");
		coursesA.add(courseaa);
		coursesA.add(courseab);
		coursesA.add(courseac);
		coursesA.add(coursead);
		
		List<Course> coursesB = new ArrayList<Course>();
		Course courseba = new Course();
		courseba.setId(5);
		courseba.setName("Matematicas");
		coursesB.add(courseaa);
		coursesB.add(courseba);
		
		List<Course> coursesC = new ArrayList<Course>();
		coursesC.add(coursead);
		coursesC.add(courseab);
		teachers.add(new Teacher(1, "Rocio", "Lopez", "Velasco", coursesA));
		teachers.add(new Teacher(2, "Janet", "Hernandez", "Ruiz", coursesB));
		teachers.add(new Teacher(3, "Oriana", "Martinez", "Flores", coursesC));
		return teachers;
	}

}
